{%extends "base.xhtml"%}
{% load i18n %}
{% load ham %}
{%block content%}
	<table class="results">
	<thead>
	<tr class="submission">
		<td>{%trans "Inserted"%}</td>
		<td>{%trans "User"%}</td>
		<td>{%trans "Task"%}</td>
		<td>{%trans "Compiler"%}</td>
		<td>{%trans "Status"%}</td>
		<td>{%trans "Points"%}</td>
	</tr>
	</thead>
	<tbody>
	{%for submission in objects%}
	<tr class="submission {%ifequal submission.status 0%}accepted{%else%}rejected{%endifequal%}">
		<td><a href="{%href "pacs.views.show_submission" submission_id=submission.id%}">{{submission.insertTime}}</a></td>
		<td>{{submission.user.username}}</td>
		<td>{{submission.task|get_name:LANGUAGE_CODE}}</td>
		<td>{{submission.comp.name}}</td>
		<td>{{submission.status}}</td>
		<td>{{submission.points}}</td>
	</tr>
	{%endfor%}
	</tbody>
	</table>
	{%if prev_page%}
	<a href="{%href "" page=prev_page%}">Prev</a>
	{%endif%}
	{{page}}/{{page_count}}
	{%if next_page%}
	<a href="{%href "" page=next_page%}">Next</a>
	{%endif%}
{%endblock%}



